let map = new Map([
	[1,'一'],
	[2,'二'],
	[3,'三'],
	[4,'四'],
	[5,'五'],
	[6,'六'],
	[7,'日'],
])
export function dateFormater(date){
	let y = date.getFullYear()
	let d = date.getDate()
	let m = date.getMonth()+1
	let day = date.getDay()
	return `${y}年${m}月${d}日 星期${map.get(day)}`
}

export function dateSimpleFormater(date){
	let d = date.getDate()
	let m = date.getMonth()+1
	return `${m}-${d}`
}

export function dateDetailFormater(date){
	let d = date.getDate()
	let m = date.getMonth()+1
	let H = date.getHours()
	let M = date.getMinutes()
	return `${m<10?'0'+m:m}-${d<10?'0'+d:d} ${H<10?'0'+H:H}:${M<10?'0'+M:M}`
}